
import request from '@/utils/request'

export function page(data) {
  return request({
    url: '/lease/page',
    method: 'post',
    data
  })
}
// 出租调用的接口，房产列表出租按钮
export function leaseAdd(id) {
  return request({
    url: '/lease/' + id,
    method: 'post'
  })
}
// 重新招租接口
export function afreshLeasing(id) {
  return request({
    url: '/lease/afreshLeasing/' + id,
    method: 'post'
  })
}

export function leaseDetail(id) {
  return request({
    url: '/lease/' + id,
    method: 'get'
  })
}
export function leaseDel(id) {
  return request({
    url: '/lease/' + id,
    method: 'delete'
  })
}
export function stopContract(id) {
  return request({
    url: '/lease/stop/' + id,
    method: 'post'
  })
}
export function renewal(id) {
  return request({
    url: '/lease/renewal/' + id,
    method: 'post'
  })
}
export function move(id) {
  return request({
    url: '/lease/move/' + id,
    method: 'post'
  })
}
export function leaseStep1(data) {
  return request({
    url: '/lease/step1',
    method: 'post',
    data
  })
}
export function leaseStep2AddPlan(data) {
  return request({
    url: '/lease/step2/addPlan',
    method: 'post',
    data
  })
}
export function leaseStep2OwnerAgree(id) {
  return request({
    url: '/lease/step2/ownerAgree/' + id,
    method: 'post'
  })
}
export function leaseStep2OwnerCancel(id) {
  return request({
    url: '/lease/step2/ownerCancel/' + id,
    method: 'post'
  })
}
export function leaseStep2OwnerRefused(id) {
  return request({
    url: '/lease/step2/ownerRefused/' + id,
    method: 'post'
  })
}
export function leaseStep2RenterCancel(id) {
  return request({
    url: '/lease/step2/renterCancel/' + id,
    method: 'post'
  })
}
export function leaseStep2cancelPlan(id) {
  return request({
    url: '/lease/step2/cancelPlan/' + id,
    method: 'post'
  })
}
export function leaseStep2RenterSecondConfirm(id) {
  return request({
    url: '/lease/step2/renterSecondConfirm/' + id,
    method: 'post'
  })
}
export function leaseStep2Recommend(data) {
  return request({
    url: '/lease/step2/recommend',
    method: 'post',
    data
  })
}
export function leaseStep2Result(data) {
  return request({
    url: '/lease/step2/result',
    method: 'post',
    data
  })
}
export function leaseStep3(data) {
  return request({
    url: '/lease/step3',
    method: 'post',
    data
  })
}
export function leaseStep3Cancel(id) {
  return request({
    url: '/lease/step3/renterCancel/' + id,
    method: 'post'
  })
}
export function leaseStep5(data) {
  return request({
    url: '/lease/step5',
    method: 'post',
    data
  })
}
export function leaseStep6(data) {
  return request({
    url: '/lease/step6',
    method: 'post',
    data
  })
}
export function leaseStep7confirm(id) {
  return request({
    url: '/lease/step7/confirm/' + id,
    method: 'post'
  })
}
export function leaseStep7(data) {
  return request({
    url: '/lease/step7',
    method: 'post',
    data
  })
}
export function jump(data) {
  return request({
    url: '/lease/jump',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: '/lease',
    method: 'put',
    data
  })
}

export function leaseStep2Ctrl(data) {
  return request({
    url: '/lease/step2',
    method: 'post',
    data
  })
}

